﻿package morn.core.components
{
    import com.sh.game.global.*;
    import morn.core.handlers.*;

    public class UrlImage extends Image
    {

        public function UrlImage()
        {
            return;
        }// end function

        override public function set url(param1:String) : void
        {
            if (_url != param1)
            {
                _url = param1;
                if (Boolean(param1))
                {
                    if (this._bitmap)
                    {
                        this._bitmap.url = param1;
                    }
                    App.mloader3.loadBMD(Config.getUrl(MornConfig.urlImgPath + _url), 1, new Handler(setBitmapData, [_url]));
                }
                else
                {
                    bitmapData = null;
                }
            }
            _skinChanged = true;
            return;
        }// end function

        public function set turl(param1:String) : void
        {
            if (_url != param1)
            {
                _url = param1;
                if (Boolean(param1))
                {
                    App.mloader3.loadBMD(_url, 1, new Handler(setBitmapData, [_url]));
                }
                else
                {
                    bitmapData = null;
                }
            }
            _skinChanged = true;
            return;
        }// end function

    }
}
